package com.handyshop.mall.dubbo.user.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.handyshop.mall.dubbo.entity.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.math.BigDecimal;

@ApiModel(value = "会员等级表")
@Data
@EqualsAndHashCode(callSuper = true)
@TableName(value = "nrs_user_level")
public class UserLevel extends BaseEntity {
    /**
     * 等级名称
     */
    @TableField(value = "`name`")
    @ApiModelProperty(value = "等级名称")
    private String name;

    /**
     * 会员等级LOGO
     */
    @TableField(value = "logo")
    @ApiModelProperty(value = "会员等级LOGO")
    private String logo;

    /**
     * 会员折扣率
     */
    @TableField(value = "discount")
    @ApiModelProperty(value = "会员折扣率")
    private BigDecimal discount;

    /**
     * 是否默认(1:是;0:否)
     */
    @TableField(value = "default_flag")
    @ApiModelProperty(value = "是否默认(1:是;0:否)")
    private Boolean defaultFlag;

    /**
     * 所需经验值
     */
    @TableField(value = "experience")
    @ApiModelProperty(value = "所需经验值")
    private Long experience;

    /**
     * 会员等级备注
     */
    @TableField(value = "note")
    @ApiModelProperty(value = "会员等级备注")
    private String note;

    public static final String COL_ID = "id";

    public static final String COL_NAME = "name";

    public static final String COL_LOGO = "logo";

    public static final String COL_DISCOUNT = "discount";

    public static final String COL_DEFAULT_FLAG = "default_flag";

    public static final String COL_EXPERIENCE = "experience";

    public static final String COL_NOTE = "note";

    public static final String COL_DELETE_FLAG = "delete_flag";

    public static final String COL_CREATOR_ID = "creator_id";

    public static final String COL_CREATOR = "creator";

    public static final String COL_CREATE_TIME = "create_time";

    public static final String COL_MODIFY_TIME = "modify_time";
}